package com.zyz.L_泛型.自定义泛型;

/**
 * @author: vick
 * @Date: 2025/4/2
 * @Description:
 * @version: 1.0
 */
public class Father<T1, T2> {

}

//子类不保留父类的泛型
class Son1 extends Father { //等价于 class Son1 extends Father<Object, Object>
}

//具体类型
class Son2 extends Father<Integer, String> {
}

//子类保留父类的泛型
class Son3<T1, T2> extends Father<T1, T2> { //等价于 class Son1 extends Father<Object, Object>
}

//部分保留
class Son4<T2> extends Father<Integer, T2> {
}



